package com.lee.factory.simple;

import com.lee.OneSender;
import com.lee.Sender;
import com.lee.TwoSender;

/**
 * 功能描述:
 *
 * @author liping(lpaidd50@gmail.com)
 * @version v1.0
 * @date 2017/3/24
 */
public class SimpleFactory {
	/**
	 * @param type
	 * @return
	 */
	public static Sender createSender(String type) {
		if ("one".equals(type)) {
			return new OneSender();
		} else if ("two".equals(type)) {
			return new TwoSender();
		}
		return null;
	}
}
